<?php /* Smarty version Smarty-3.1.8, created on 2014-06-13 21:31:09
         compiled from "C:\wamp\www\Transacciones\views\index\fusion.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2345538e1caba802f5-07677895%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ba277d9b2b1f35cb82291514788141c33e3f1017' => 
    array (
      0 => 'C:\\wamp\\www\\Transacciones\\views\\index\\fusion.tpl',
      1 => 1402693858,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2345538e1caba802f5-07677895',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_538e1cabae5326_63204037',
  'variables' => 
  array (
    'consecutivo' => 0,
    'moldes' => 0,
    'count' => 0,
    'datos' => 0,
    '_susess' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_538e1cabae5326_63204037')) {function content_538e1cabae5326_63204037($_smarty_tpl) {?><form id="form1" method="post" action="">
    <input type="hidden" name="guardar" value="1" />
    <table>
        <tr>
            <th>Colada</th>
            <th>Lance</th>
            <th>Fecha</th>
            <th>Producto</th>
            <th>Moldes</th>
            <th>Pzas</th>
            <th></th>
        </tr>
        <?php if (isset($_smarty_tpl->tpl_vars['consecutivo']->value)){?>
            <input type="hidden" name="consecutivo" value="<?php echo $_smarty_tpl->tpl_vars['consecutivo']->value;?>
" />
        <?php }?>
        <?php $_smarty_tpl->tpl_vars['count'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['count']->step = 1;$_smarty_tpl->tpl_vars['count']->total = (int)ceil(($_smarty_tpl->tpl_vars['count']->step > 0 ? count($_smarty_tpl->tpl_vars['moldes']->value)-1+1 - (0) : 0-(count($_smarty_tpl->tpl_vars['moldes']->value)-1)+1)/abs($_smarty_tpl->tpl_vars['count']->step));
if ($_smarty_tpl->tpl_vars['count']->total > 0){
for ($_smarty_tpl->tpl_vars['count']->value = 0, $_smarty_tpl->tpl_vars['count']->iteration = 1;$_smarty_tpl->tpl_vars['count']->iteration <= $_smarty_tpl->tpl_vars['count']->total;$_smarty_tpl->tpl_vars['count']->value += $_smarty_tpl->tpl_vars['count']->step, $_smarty_tpl->tpl_vars['count']->iteration++){
$_smarty_tpl->tpl_vars['count']->first = $_smarty_tpl->tpl_vars['count']->iteration == 1;$_smarty_tpl->tpl_vars['count']->last = $_smarty_tpl->tpl_vars['count']->iteration == $_smarty_tpl->tpl_vars['count']->total;?>
        <?php $_smarty_tpl->tpl_vars['datos'] = new Smarty_variable($_smarty_tpl->tpl_vars['moldes']->value[$_smarty_tpl->tpl_vars['count']->value], null, 0);?>
        <tr>
            <td><input type="hidden" name="colada_<?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
" value="<?php echo $_smarty_tpl->tpl_vars['datos']->value['colada'];?>
" /><?php echo $_smarty_tpl->tpl_vars['datos']->value['colada'];?>
</td>
            <td><input type="hidden" name="lance_<?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
" value="<?php echo $_smarty_tpl->tpl_vars['datos']->value['lance'];?>
" /><?php echo $_smarty_tpl->tpl_vars['datos']->value['lance'];?>
</td>
            <td><input type="hidden" name="fecha_<?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
" value="<?php echo $_smarty_tpl->tpl_vars['datos']->value['fecha'];?>
" /><?php echo $_smarty_tpl->tpl_vars['datos']->value['fecha'];?>
</td>
            <td><input type="hidden" name="producto_<?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
" value="<?php echo $_smarty_tpl->tpl_vars['datos']->value['producto'];?>
" /><?php echo $_smarty_tpl->tpl_vars['datos']->value['producto'];?>
</td>
            <td class="cen"><?php echo 1*$_smarty_tpl->tpl_vars['datos']->value['cantidad'];?>
</td>
            <td class="cen"><input type="hidden" name="pzas_<?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
" value="<?php echo $_smarty_tpl->tpl_vars['datos']->value['pzasMol']*$_smarty_tpl->tpl_vars['datos']->value['cantidad'];?>
" /><?php echo $_smarty_tpl->tpl_vars['datos']->value['pzasMol']*$_smarty_tpl->tpl_vars['datos']->value['cantidad'];?>
</td>
            <?php if ($_smarty_tpl->tpl_vars['datos']->value['almacen']=='R'){?>
                <td class="cen"><input type="hidden" name="tipo_<?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
" value="<?php echo $_smarty_tpl->tpl_vars['datos']->value['almacen'];?>
" />Rechazo</td>
                <td class="cen"><input type="hidden" name="tipo_<?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
" value="<?php echo $_smarty_tpl->tpl_vars['datos']->value['observaciones'];?>
" /><?php echo $_smarty_tpl->tpl_vars['datos']->value['observaciones'];?>
</td>
            <?php }?>
        </tr>
        <?php }} ?>
    </table>
    <?php if (!isset($_smarty_tpl->tpl_vars['_susess']->value)){?>
    <p><input type="submit" class="button" value="Generar transaccion" /></p>
    <?php }?>
</form><?php }} ?>